/* eslint-disable no-empty */
/* eslint-disable no-console */
/* eslint-disable handle-callback-err */
/* eslint-disable camelcase */
/* eslint-disable no-undef */
/* eslint-disable space-before-function-paren */
/* eslint-disable indent */
/* eslint-disable global-require */
/* eslint-disable no-negated-condition */
/* eslint-disable no-unused-vars */
class Initclass {
  async axios(image, option) {
    const f = new FormData();
    f.append('image', image, option.name);
    f.append('option', option.option);
    return await axios.post('https://public.hterobot.com/security/baidu/face', f, {
      headers: {
        'Content-Type': 'multipart/form-data'
      }
    });
  }

  setFaceinit(image, option = {}) {
    option.face_field = 'age,beauty,expression,faceshape,gender,glasses,race,facetype';
    option.face_type = 'LIVE';
    option.max_face_num = '1';
    const x = {
      name: 'a.png',
      option
    };
    return this.axios(image, x);
  }

  setgesture(image, option = {}) {
    const x = {
      name: 'a.png',
      option
    };
    return this.axios(image, x);
  }

  setbodyAttrtopwear(image, option = {}) {
    const x = {
      name: 'a.png',
      option
    };
    return this.axios(image, x);
  }


  setbodyAttrdownwear(image, option = {}) {
    const x = {
      name: 'a.png',
      option
    };
    return this.axios(image, x);
  }


  setbodyNum(image, option = {}) {
    const x = {
      name: 'a.png',
      option
    };
    return this.axios(image, x);
  }


  setadvancedGeneral(image, option = {}) {
    const x = {
      name: 'a.png',
      option
    };
    return this.axios(image, x);
  }


  setdishDetect(image, option = {}) {
    const x = {
      name: 'a.png',
      option
    };
    return this.axios(image, x);
  }


  setcarDetect(image, option = {}) {
    const x = {
      name: 'a.png',
      option
    };
    return this.axios(image, x);
  }


  setlogoSearch(image, option = {}) {
    const x = {
      name: 'a.png',
      option
    };
    return this.axios(image, x);
  }


  setanimalDetect(image, option = {}) {
    const x = {
      name: 'a.png',
      option
    };
    return this.axios(image, x);
  }

  setplantDetect(image, option = {}) {
    const x = {
      name: 'a.png',
      option
    };
    return this.axios(image, x);
  }


  setlandmark(image, option = {}) {

    const x = {
      name: 'a.png',
      option
    };
    return this.axios(image, x);
  }


  setgeneralBasic(image, option = {}) {
    const x = {
      name: 'a.png',
      option
    };
    return this.axios(image, x);
  }


  setwebimage(image, option = {}) {
    const x = {
      name: 'a.png',
      option
    };
    return this.axios(image, x);
  }


  settidcard(image, option = {}) {
    const x = {
      name: 'a.png',
      option
    };
    return this.axios(image, x);
  }


  sethandwriting(image, option = {}) {
    const x = {
      name: 'a.png',
      option
    };
    return this.axios(image, x);
  }

  setnumbers(image, option = {}) {
    const x = {
      name: 'a.png',
      option
    };
    return this.axios(image, x);
  }

}
